﻿// 18-5名字遮蔽与类作用域.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//

#include <iostream>
using namespace std;

/*
class A {
public:
    int m_a = 80;
    void func()
    {
        cout << "调用了基类A的func的方法" << endl;
    }
    void func(int a)
    {
        cout << "调用了基类A的func(int a)的函数" << endl;

    }
};
class B :public A {
public:
    int m_a = 20;
    //void func()
    //{
        //cout << "调用了基类B的func的方法" << endl;
    //}
};*/


int main()
{

    /*
     B b;
    cout << "m_a=" << b.m_a << endl;
    b.func();
    b.func(1);   
    
    */

}

